<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script src="../js/vue.js"></script>
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.min.css"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">

<body>
    <!-- 
        enter-class
        enter-active-class
        enter-to-class

        leave-class
        leave-active-class
        leave-to-class


     -->
    <div id="app">
        <button @click="show=!show">toggle</button>
        <!-- <transition enter-active-class="animated bounce" leave-active-class="animated swing">
            <h1 v-if="show">落花生</h1>
        </transition> -->
        <transition enter-active-class="animate__animated animate__bounce"
            leave-active-class="animate__animated animate__swing">
            <h1 v-if="show">落花生</h1>
        </transition>
    </div>
    <script>
        const vm = new Vue({
            el: "#app",
            data: {
                show: true
            }
        })
    </script>
</body>

</html>